﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Collections;

namespace DTW_Chart
{
    class Sequence
    {
        /// <summary>
        /// Contain data of an array of points
        /// </summary>
        private List<PointD> seq;
        /// <summary>
        /// Create Sequence
        /// </summary>
        public Sequence() {
            this.seq = new List<PointD>();
        }
        /// <summary>
        /// Get Sequence
        /// </summary>
        /// <returns>The LinkedList of Sequence</returns>
        public List<PointD> getSequence()
        {
            return this.seq;
        }
        /// <summary>
        /// Add Point to the last position of Sequence
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public void addToSequence(double x, double y)
        {
            PointD p = new PointD(x, y);        
            this.seq.Add(p);
        }
    }
}
